package com.chenchen.auth.api;

import com.chenchen.auth.entity.AuthUserDTO;
import com.chenchen.auth.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * ClassName UserFeignService
 * description:
 * 用户服务feign
 * @author 海问香
 * @createTime 2024/8/23 14:08
 */
@FeignClient("cc-club-auth-dev")
public interface UserFeignService {
    /**
     * 获取用户信息
     * @param authUserDTO
     * @return
     */
    @RequestMapping("/user/getUserInfo")
    Result<AuthUserDTO> getUserInfo(@RequestBody AuthUserDTO authUserDTO);

    /**
     * 批量获取用户信息
     * @param userNameList
     * @return
     */
    @RequestMapping("/user/listByIds")
    Result<List<AuthUserDTO>> listUserInfoByIds(@RequestBody List<String> userNameList);
}
